<div class="block list-form">
	<div class="block-title"><?php echo $block_title ?></div>
	<div class="block-body">
		<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>
		
		<form method="post">
			<?php $this->widget('zii.widgets.grid.CGridView', array(
				'id'=>'website-grid',
				'dataProvider'=>$dataProvider,
				'columns'=>array(
					array(
						'type' => 'raw',
						'name' => "选择",
						'value' => 'CHtml::checkbox("websites[]", null, array("value" => $data->website_id))',
					),
					array('name' => '网站编号', 'value' => '$data->website_id'),				
					array('name' => '网站', 'value' => '$data->domain'),
					array('name' => '广告点击', 'value' => '$data->clicknum'),
					array('name' => '独立IP', 'value' => '$data->validclick'),
					array('name' => '注册数', 'value' => '$data->joinmb'),
					array('name' => '有效注册', 'value' => '$data->vjoinmb'),
					array('name' => '订单数', 'value' => '$data->ordernum'),
					array('name' => '订单总额', 'value' => '"\$".$data->order_amount')
				),
				
			)); ?>
			
			
			<div class="op-list">
				<input type="submit" class="op-btn" action="<?php echo $this->createUrl('website/delete')?>" value="删除" />
			</div>
			
			<script>
			$(function(){
				$(".op-btn").click(function(){
					$(this).parents('form:first').attr('action', $(this).attr('action')).submit();
				});
			});
			</script>
		</form>
	</div>
</div>